import { useRecoilState, atom } from "recoil";
import { initPage } from "@/constants";
export const pageDefalut = atom({
    key: "page",
    default: initPage,
});

export default () => {
    const [page, setPage] = useRecoilState(pageDefalut);
    return {
        page,
        setPage,
    };
};